package org.tgcloud.group.repository;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.tgcloud.group.entity.SystemNotifyMessage;
import org.tgcloud.group.web.controller.dto.notify.SystemNotifyDTO;

import java.util.List;

/**
 * @Author: zhy
 * @Created: 2025-09-26-上午9:45
 * @Description: ${description}
 */
@Mapper
public interface SystemNotifyMessageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SystemNotifyMessage record);

    int insertSelective(SystemNotifyMessage record);

    SystemNotifyMessage selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SystemNotifyMessage record);

    int updateByPrimaryKey(SystemNotifyMessage record);

    List<SystemNotifyDTO> selectManageList(@Param("userId") Integer userId, @Param("userType") Short userType, @Param("projectId") Integer projectId,
                                           @Param("readStatus") Boolean readStatus);

    int updateReadStatusByIds(@Param("readIds") String[] readIds);
}